/**
 * 
 */
package stc.skymobi.fsm.event;

import java.util.UUID;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import stc.skymobi.util.MutableIdentifyable;


/**
 * @author hp
 *
 */
public class UUIDTimeoutEvent implements MutableIdentifyable, TimeoutEvent {

	private	UUID	id;
	private	int		stamp;
	
	public UUIDTimeoutEvent(UUID id) {
		this.stamp = 0;
		this.setIdentification(id);
	}
	
	/* (non-Javadoc)
	 * @see com.skymobi.util.Identifyable#getIdentification()
	 */
	public UUID getIdentification() {
		return UUID.fromString(id.toString());
	}

	public void setIdentification(UUID id) {
		this.id = UUID.fromString(id.toString());
	}

	public int getStamp() {
		return	this.stamp;
	}
	
	public void setStamp(int stamp) {
		this.stamp = stamp;
	}
	
    public String toString() {
        
        return  ToStringBuilder.reflectionToString(this, 
                            ToStringStyle.SHORT_PREFIX_STYLE);
    }
}
